/**
 * Copyright: Copyright (c) 2012
 * Company:anhosi.com
 * @author lifuyu
 * @date Aug 12, 2012
 * @version V1.0
 *
 * @Description: 
 */
package com.microcm.insync.service;

import java.util.List;
import java.util.Map;

import com.microcmframework.core.entity.PageBean;
import com.taobao.api.domain.Shop;

/**
 * @author kansum
 * 
 */
public interface InsyncService
{
	/**
	 * 同步淘宝商品分类数据
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 */
	public String categorySynchronizingFromTaobao(long parentCid, List<Map<String, Object>> resultList);

	/**
	 * 同步淘宝商品数据
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 */
	public String goodsSynchronizingFromTaobao(Long cid, String sort, PageBean pageBean);

	/**
	 * 关键词查询，获得s8的url
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 */
	public String getS8UrlFromTaobao(String unid, String keyword);

	/**
	 * 通过商品numiid查询，获得转换后的商品
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 */
	public String getConvertGoodsFromTaobao(String unid, String numIids, PageBean pageBean);

	/**
	 * 根据昵称获得店铺
	 * 
	 * @author kansum
	 */
	public Shop getShopFromTaobao(String nick);

	/**
	 * 通过店铺sid串查询，获得转换后的店铺
	 * 
	 * @author：lifuyu
	 * 
	 * @return
	 */
	public String getConvertShopsFromTaobao(String unid, String sids, PageBean pageBean);
}
